﻿using System;
using System.Collections.Generic;
using Model;
using DAL;

namespace BLL.CarriersBLL
{
    public class AddCarrierBll
    {
        private readonly CarrierListRepository _carrierListRepository = new CarrierListRepository();
        private readonly DurableSpecRepository _durableSpecRepository = new DurableSpecRepository();

        // 查询所有耐用品规格
        public List<DurableSpec> GetAllDurableSpecs()
        {
            return _durableSpecRepository.GetAllDurableSpecs();
        }

        // 根据耐用品规格ID查询载具清单
        public List<Dictionary<string, object>> SearchCarrierListsByDurableSpecId(int durableSpecId)
        {
            return _carrierListRepository.SearchCarrierLists(
                detailedCarrierType: null,
                capacityStatus: null,
                cleaningStatus: null,
                carrierStatus: null,
                carrierId: null,
                durableSpecId: durableSpecId
            );
        }
    }
}